package javaCode.chapter04.本章作业;

import java.util.Scanner;

public class Homework02 {

    public static void main(String[] args) {

        //实现判断一个整数，属于哪个范围：大于0;小于0;等于0

        Scanner myScanner=new Scanner(System.in);
        System.out.print("请输入一个数:");
        int num=myScanner.nextInt();
        if (num>0){
            System.out.println("大于0 "+num);
        }else if(num<0){
            System.out.println("小于0 "+num);
        }else {
            System.out.println("等于0 "+num);
        }

    }
}
